Skip to content

Add config toggles for Dynmap island markers and area boxes#2991

Merged
tastybento merged 1 commit into
developfrom
feature/dynmap-marker-toggle
Jun 15, 2026
Merged

Add config toggles for Dynmap island markers and area boxes#2991
tastybento merged 1 commit into
developfrom
feature/dynmap-marker-toggle

Conversation

@tastybento

Copy link
Copy Markdown
Member

Background

BentoBox's Dynmap integration draws, for every island:

  1. A house icon marker at the island center (the "Iles" markers in the layers control), and
  2. A protected-area border box outlining the island.

On worlds with many tightly-packed islands, these can flood the Dynmap view. Until now the only ways to hide them were per-viewer (untick the layer) or via Dynmap commands (/dmarker updateset … hide:true, /dmarker deleteset …) — and the latter isn't permanent because BentoBox re-creates and re-populates the set on restart and on island create/reset/rename/delete events.

Change

Adds a new dynmap config section with two toggles:

dynmap:
  # Toggle whether BentoBox shows a marker (house icon) on Dynmap at the center of every island.
  island-markers: true
  # Toggle whether BentoBox draws the protected area border box of every island on Dynmap.
  island-areas: true

DynmapHook now checks each setting before creating the corresponding marker. Both default to true, so existing behaviour is unchanged. Changes take effect after a server restart or /bbox reload.

Tests

Added two tests to DynmapHookTest:

  • testIslandMarkersDisabledNoPointMarker — no point marker created, area box still drawn
  • testIslandAreasDisabledNoAreaMarker — house icon still placed, no area box

🤖 Generated with Claude Code

On worlds with many tightly-packed islands, the house icon marker and
protected-area border box BentoBox draws on Dynmap for every island can
flood the map. Add two config options under a new `dynmap` section:

- dynmap.island-markers (default true): show the center house icon
- dynmap.island-areas (default true): draw the protected area border box

DynmapHook now checks these settings before creating each marker type.
Defaults preserve existing behaviour.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@sonarqubecloud

Copy link
Copy Markdown

@tastybento tastybento merged commit f3d1f88 into develop Jun 15, 2026
3 checks passed
@tastybento tastybento deleted the feature/dynmap-marker-toggle branch June 15, 2026 14:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant